home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / BARNET / ARMLINUX / MAIL / 9807 / text0069.txt < prev    next >
Encoding:
Text File  |  1998-08-03  |  632 b   |  17 lines

  1. >As far as I know, there's a rule about structure alignment in C.  It
  2. >says that things are aligned according to what's in the struct.  For
  3. >example, a struct containing short ints is aligned to (at least) an
  4. >even address.  The compiler makes this happen when it allocates
  5.  
  6. That's true.  However, there are also ABI rules, and on the ARM the ABI forces 
  7. 32-bit alignment even for a structure in which all the elements are smaller 
  8. than that.  This is the sort of thing that people don't expect.
  9.  
  10. (We've been through this a few weeks ago, actually.)
  11.  
  12. p.
  13.  
  14.  
  15. unsubscribe: body of `unsubscribe linux-arm' to majordomo@vger.rutgers.edu
  16.  
  17.